package com.hua.springCloud.consumerControler;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.client.RestTemplate;

@RestController
public class Consumer {
    private static  final  String URLNAME = "http://cloud-provider-payment";
    @Autowired
    private RestTemplate restTemplate;
    @RequestMapping("/consumer/getInfo")
    public String getInfo(){
        return restTemplate.getForObject(URLNAME+"/payment/zk",String.class);
    }
}
